package com.metaera.app.data.model;

public class MorningPostResponse {

    private Integer id;
    private Integer author_id;
    private String  title;
    private Object  illustrate;
    private String  pic;
    private Object  create_date;
    private Object  start_time;
    private Object  end_time;
    private String  release_time;
    private Integer like_num;
    private Integer deny_num;
    private Integer release_time_stamp;
    private Author  author;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAuthor_id() {
        return author_id;
    }

    public void setAuthor_id(Integer author_id) {
        this.author_id = author_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Object getIllustrate() {
        return illustrate;
    }

    public void setIllustrate(Object illustrate) {
        this.illustrate = illustrate;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Object getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Object create_date) {
        this.create_date = create_date;
    }

    public Object getStart_time() {
        return start_time;
    }

    public void setStart_time(Object start_time) {
        this.start_time = start_time;
    }

    public Object getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Object end_time) {
        this.end_time = end_time;
    }

    public String getRelease_time() {
        return release_time;
    }

    public void setRelease_time(String release_time) {
        this.release_time = release_time;
    }

    public Integer getLike_num() {
        return like_num;
    }

    public void setLike_num(Integer like_num) {
        this.like_num = like_num;
    }

    public Integer getDeny_num() {
        return deny_num;
    }

    public void setDeny_num(Integer deny_num) {
        this.deny_num = deny_num;
    }

    public Integer getRelease_time_stamp() {
        return release_time_stamp;
    }

    public void setRelease_time_stamp(Integer release_time_stamp) {
        this.release_time_stamp = release_time_stamp;
    }

    public Author getAuthor() {
        if (author == null){
            return new Author();
        }
        return author;
    }

    public void setAuthor(Author author) {
        this.author = author;
    }

    public static class Author {
        private Integer id;
        private String  mobile;
        private String  nickname;
        private String  avatar_img;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getNickname() {
            if (nickname == null){
                return "null";
            }
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar_img() {
            return avatar_img;
        }

        public void setAvatar_img(String avatar_img) {
            this.avatar_img = avatar_img;
        }
    }

}
